﻿<!-- 基础应用--数据同步 -->
<template>
    <div>
        <!-- 添加按钮 -->
        <!-- 按条件选择 -->
        <p style="    text-align: center; height: 50PX; line-height: 50PX; font-size: 24PX; FONT-FAMILY: CURSIVE; FONT-WEIGHT: 700;margin-top:40PX;">系统数据同步</p>
        <div style="text-align:center">
            <button type="button" class="btn btn-info btn-lg" @click="tbzzjg()"><i class="iconfont icon-jiahao ft12 mr5"></i>同步组织机构数据</button>
            <button type="button" class="btn btn-info btn-lg" @click="tbzw()"><i class="iconfont icon-jiahao ft12 mr5"></i>同步职务数据</button>

        </div>
        <!-- 表格 -->



    </div>
</template>

<script>
    module.exports = {
        props: ['pdata'],

        data: function () {
            return {
                tian: {},
                ista: "N"

            }
        },
        methods: {
            tbzzjg: function () {
                $.getJSON('/api/Bll/ExeAction?Action=QJJW_TBUSER', { P2: "" }, function (resultData) {
                    if (resultData.Result.length > 0) {
                        alert("操作完成");
                    }
                })
            },
            tbzw: function () {
                $.getJSON('/api/Bll/ExeAction?Action=QJJW_TBZW', { P2: "" }, function (resultData) {
                    if (resultData.Result.length > 0) {
                        alert("操作完成");
                    }
                })
            }

        },
        mounted: function () {
            var pro = this;
            pro.$nextTick(function () {
            })

        },
        watch: {

        }
    };
</script>